
object Useless
{
    def main() : Unit = 
    {{
        println(new UL().compute(131));
        println(new UL().compute(86));
        println(new UL().compute(4536));
    }}
}

class UL 
{
	def compute(n: Int): Int = 
	{
		var res : Int;
		var i : Int;
		var j : Int;
		
		i = 0;
		j = 0;
		res = 0;
		
		while(i<n)
		{
			while(j<n)
			{
				res = res+1+j+i;
				j = j+1;
			}
			i = i+1;
		}
		
		println("Result is : "+res);
		
		return res;
	}
}